import React, { useContext } from "react";
import { useHistory } from "react-router-dom";
import { Context } from "../App";
const home = "https://lcz-quna.oss-cn-beijing.aliyuncs.com/img/home.png"
const my = "https://lcz-quna.oss-cn-beijing.aliyuncs.com/img/my.png"
const Nav = () => {
  const history = useHistory();
  const { n } = useContext(Context);
  return (
    <div className="home_nav">
      <div>
        <img
          src={home}
          onClick={() => {
            history.push("/home");
          }}
        />
      </div>
      <div>
        <img
          onClick={() => {
            history.push("/my");
          }}
          src={my}
        />
      </div>
    </div>
  );
};
export default Nav;
